/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package define;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author RoderickNestor
 */
@XmlRootElement(name = "projectdefine")
public class ProjectDefine {

    @XmlElement(name = "classdefine")
    public List<ClassDefine> list = new ArrayList<>();

    public ClassDefine getClassDefine(String type) {
        for (ClassDefine define : list) {
            if (define.name.equals(type)) {
                return define;
            }
        }
        return null;
    }

}
